<template>
	<view>
		<dsl-navbar title="协议内容" isBack bgTopImg="white"></dsl-navbar>
		<view class="padding-sm">
			<view v-html="yonghu"v-if="type==1"></view>
			<view v-html="yongyinsi" v-if="type==2"></view>
			<view v-html="about"v-if="type==3"></view>
		</view>
	</view>
</template>

<script>
	import {
		getsystem
	} from '@/common/path.js'
	export default {
		data() {
			return {
				yongyinsi: '',
				yonghu: '',
				about: '',
				type:1
			}
		},
		//生命周期函数
		onReady() {},
		onLoad(option) {
			this.type = option.type
			console.log(this.type);
		},
		onShow() {
			this.getsystem() //基础配置
		},
		methods: {
			getsystem() {
				this.Http.POST(getsystem).then(res => {
					if (res.code == 1) {
						console.log('[协议]', res);
						this.yongyinsi = res.data.yongyinsi
						this.yonghu = res.data.yonghu
						this.about = res.data.about
					}
				})
			}
		},
		computed: {},
		components: {},
	}
</script>

<style>
</style>
